package com.jbm.onehome.iface;


import com.jbm.core.iface.IAcross;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;


/**
 * Created by lyh on 17-1-17.
 */
@Entity
@javax.persistence.Table(name = "weather", schema = "", catalog = "")
@org.hibernate.annotations.Entity(dynamicUpdate=true,dynamicInsert=true)
public class IWeather extends IAcross    implements Serializable
{
	public IWeather()
	{
		super();
        back = false;
        method = "";
        errorinfo = "";

        start = 0;
        count = 0;
	}

	public IWeather(IAcross ia)
	{
		super(ia);
	}



   private static final long serialVersionUID = -7212426926088671010L;

    public IWeather(boolean back, String errorinfo)
    {
        this();

        this.back = back;
        this.errorinfo = errorinfo;
    }

    public IWeather(String method)
    {

        this.method = method;

    }
//    public String   method;
//
//    public IWeather ()
//    {
//        super();
//    }
//
//    public IWeather(IAcross ia)
//    {
//        super(ia);
//    }

    @Id
    @javax.persistence.Column(name = "updatetime")
    public String updatetime;  //更新时间

    @Basic
    @javax.persistence.Column(name = "city")
    public String  city;      //   城市

    @Id
    @javax.persistence.Column(name = "cityid")
    public String cityid;   //城市代码

    @Basic
    @javax.persistence.Column(name = "prov")
    public String  prov	;

    @Basic
    @javax.persistence.Column(name = "cond")
    public String  cond	;   //天气 晴 阴

    @Basic
    @javax.persistence.Column(name = "condcode")
    public String  condcode	;  //天气代码 t
    @Basic
    @javax.persistence.Column(name = "fl")
    public String  fl;     //体感温度
    @Basic
    @javax.persistence.Column(name = "hum")
    public String  hum	;    //相对湿度 %

    @Basic
    @javax.persistence.Column(name = "pcpn")
    public String  pcpn	;   //  降水量mm

    @Basic
    @javax.persistence.Column(name = "pres")
    public String  pres	;   //   气压

    @Basic
    @javax.persistence.Column(name = "tmp")
    public String  tmp  ;    // 温度

    @Basic
    @javax.persistence.Column(name = "vis")
    public String  vis   ;   //  能见度km

    @Basic
    @javax.persistence.Column(name = "winddir")
    public String  winddir  ;   // 风向

    @Basic
    @javax.persistence.Column(name = "windsc")
    public String  windsc  ;    // 风力

    @Basic
    @javax.persistence.Column(name = "windspd")
    public String  windspd ;   //   风速（kmph）
    @Basic
    @javax.persistence.Column(name = "aqi")
    public String  aqi    ;    //空气质量

    @Basic
    @javax.persistence.Column(name = "qlty")
    public String  qlty	;    // 空气指数

    @Basic
    @javax.persistence.Column(name = "tmpmax")
    public String  tmpmax	;    // 最高气温

    @Basic
    @javax.persistence.Column(name = "tmpmin")
    public String  tmpmin	;    // 最低气温 ;

 @Transient
 public boolean back;
 @Transient
 public String method;
 @Transient
 public String errorinfo;
 @Transient
 public int count;
 @Transient
 public int start=0;
 @Transient
 public int pagesize=0;
 @Transient
 public Integer tableid;
}
